
.crm-home{
    background-color: #e8effa;
    width: 100%;
    margin-top: 10px;
    .display-box{
        padding: 5px;
        width: 100%;
        display: flex;
        justify-content: space-evenly;
    }
}

// 盈亏
.crm-hp-loss{
    display: flex;
    justify-content: space-around;
    width: 100%;
    height:220px;
    margin-bottom: 5px;
    .profit-loss-item{
        padding: 10px;
        background-color: #fff;
        flex:1;
        margin: 0 5px;
        height: 220px;
        border-radius: 5px;
        .item-icon{
            width: 100%;
            height: 100px;
            border-radius: 5px;
            display:flex;
            justify-content: center;
            align-items: center;
        }
        .icon_style{
            font-size: 40px;
            color: #fff;
        }
        .num{
            display: flex;
            justify-content:center;
            .total{
                font-size: 30px;
                display: inline;
            }
            .profit-or-loss{
                color: red;
                font-size: 16px;
                position: relative;
                >p{
                    position:absolute;
                    left:0
                }
            }
        }
        .item-title{
            text-align: center;
            font-size: 16px;
        }
    }
}

// 快捷入口
.crm-home-quick-entry{
    flex:1.5;
    height:200px;
    border-radius: 5px;
    background-color: #fff;
    .crm-quick-entry-header{
        padding: 10px;
        height: 40px;
        border-bottom: 1px solid #F5F5F6;
        display: flex;
        justify-content: space-between;
        .crm-quick-entry-title{
            font-size: 18px;
            font-weight: 700px;
        }   
    }
    .crm-quicky-entry-content{
        height: 160px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        .crm-qe-item{
            cursor: pointer;
            width: 150px;
            .item-icon{
                display: flex;
                justify-content: center;
                align-items: center;
            }
            .item-title{
                margin-top: 10px;
                display: flex;
                justify-content: center;
                align-items: center;
            }
        }
    }
}

// 公告
.crm-home-notice{
    flex:1;
    margin-left:10px;
    height: 200px;
    border-radius: 5px;
    background-color: #fff;
       .crm-home-notice-header{
        width: 100%;
        height: 40px;
        padding: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #F5F5F6;
        .crm-home-notice-title{
            font-size: 18px;
            font-weight: 700px;
            >span{
                margin-left: 10px;
            }
        }
        .crm-home-notice-more{
            color: rgb(66,118,253);
        }
    }
    .crm-home-notice-content{
        width: 100%;
        height: 160px;
        overflow-y: scroll;
        .crm-home-notice-item{
            position: relative;
            padding: 10px;
            >span{
                position: absolute;
                right: 5px;
                color: silver;
            }
        }
    }
    .crm-home-notice-content::-webkit-scrollbar{
        width: 5px;
        height: 100%;
    }
    
    .crm-home-notice-content::-webkit-scrollbar-thumb{
        border-radius:5px;
        background-color: silver;
    }
}

// 销售额统计
.sell-total-chart{
    flex:1;
    height: 290px;
    .bar-chart-header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #fff;
        height: 35px;
        padding: 0 10px;
        line-height: 30px;
        .header-left{
            width: 100px;
            display: flex;
            justify-content: space-around;
            cursor: pointer;
        }
    }
    .chart-box{
        background-color: #fff;
    }
    .bar-chart{
        margin-top: 5px;
        padding: 10px;
        width: 85%;
        height: 250px;
    }
    .active{
        border-bottom: 2px solid rgb(60, 104, 235);
    }
    // echarts表格提示框样式
    .tooltip::before{
        content: "";
        border: 8px solid transparent;
        position: absolute;
        border-right-color: #fff;
        top:25%;
        right:100%
    }
    .tooltip{
        display: flex;
        justify-content: center;
        flex-direction: column;
        height: 60px;
        padding: 0 10px;
    }
}

// 销售额TOP10
.sell-top-10-chart{
    flex:1;
    height: 290px;
    margin-left: 10px;
    .bar-chart-header{
        display: flex;
        padding: 0 10px;
        align-items: center;
        justify-content: space-between;
        background-color: #fff;
        height: 35px;
        line-height: 30px;
        .header-left{
            width: 100px;
            display: flex;
            justify-content: space-around;
            cursor: pointer;
        }
    }
    .chart-box{
        background-color: #fff;
    }
    .bar-chart{
        margin-top: 5px;
        padding: 10px;
        width: 85%;
        height: 250px;
    }
    .active{
        border-bottom: 2px solid rgb(60, 104, 235);
    }
    // echarts表格提示框样式
    .tooltip::before{
        content: "";
        border: 8px solid transparent;
        position: absolute;
        top:25%;
        right:100%
    }
    .tooltip{
        display: flex;
        justify-content: center;
        flex-direction: column;
        height: 60px;
        padding: 0 10px;
    }
}

// 客户统计
.customer-total{
    flex:1;
    height: 300px;
    padding: 5px;
    border-radius: 5px;
    background-color: #fff;
    .pie-chart-title{
        font-size: 20px;
        font-weight: 500;
    }
    .crm-home-check{
        cursor: pointer;
        margin-top: 10px;
        position: relative;
        >div{
            display: flex;
            position: absolute;
            right:10px;
        }
    }
    .pie-chart{
        margin-top: 40px;
        width: 85%;
        height: 200px;
    }
    .date-pick{
        margin-left: 10px;
        display: flex;
        align-items: center;
    }
    .crm-home-date-s{
        width: 70px;
        height:30px;
        font-size: 12px;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        display: flex;
        justify-content: center;
        align-items:center;
        border:1px solid rgb(235,235,237)
    }
    .active-s{
        width: 70px;
        height:30px;
        font-size: 12px;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        display: flex;
        justify-content: center;
        align-items:center;
        color: rgb(66,118,253);
        border:1px solid rgb(235,235,237)
    }
    .crm-home-date-t{
        width: 70px;
        height:30px;
        font-size: 12px;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
        display: flex;
        justify-content: center;
        align-items:center;
        border:1px solid rgb(235,235,237)
    }
    .active-t{
        width: 70px;
        height:30px;
        font-size: 12px;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
        display: flex;
        justify-content: center;
        align-items:center;
        color: rgb(66,118,253);
        border:1px solid rgb(235,235,237)
    }

}

// 已认证客户总数
.verify-customer{
    flex:1;
    height: 300px;
    padding: 5px;
    margin: 0 5px;
    border-radius: 5px;
    background-color: #fff;
    .pie-chart-title{
        font-size: 20px;
        font-weight: 500;
    }
    .crm-home-check{
        cursor: pointer;
        margin-top: 10px;
        position: relative;
        >div{
            display: flex;
            position: absolute;
            right:10px;
        }
    }
    .pie-chart{
        margin-top: 40px;
        width: 85%;
        height: 200px;
    }
    .date-pick{
        margin-left: 10px;
        display: flex;
        align-items: center;
    }
    .crm-home-date-s{
        width: 70px;
        height:30px;
        font-size: 12px;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        display: flex;
        justify-content: center;
        align-items:center;
        border:1px solid rgb(235,235,237)
    }
    .active-s{
        width: 70px;
        height:30px;
        font-size: 12px;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        display: flex;
        justify-content: center;
        align-items:center;
        color: rgb(66,118,253);
        border:1px solid rgb(235,235,237)
    }
    .crm-home-date-t{
        width: 70px;
        height:30px;
        font-size: 12px;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
        display: flex;
        justify-content: center;
        align-items:center;
        border:1px solid rgb(235,235,237)
    }
    .active-t{
        width: 70px;
        height:30px;
        font-size: 12px;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
        display: flex;
        justify-content: center;
        align-items:center;
        color: rgb(66,118,253);
        border:1px solid rgb(235,235,237)
    }

}

// 订单统计
.line-chart-box{
    width: 100%;
    height: 400px;
    padding: 5px;
    border-radius: 5px;
    background-color: #fff;
    .line-chart-header{
        display: flex;
        justify-content: space-between;
        .header-title{
            font-size: 20px;
            font-weight: 500;
        }
        .header-right{
            width: 700px;
            display: flex;
            align-items: center;
            .check-box{
                width: 400px;
                display: flex;
                margin-right: 10px;
                justify-content: space-around;
                cursor: pointer;
                >div{
                    display: flex;
                    align-items: center;
                }
            }
        }
    }
    .chart-box{
        width: 90%;
        display: flex;
        justify-content: center;
        .line-chart{
            width: 100%;
            height: 350px;
        }
    }   
    .kind,.kind-active,
    .kind-d,.kind-m,
    .kind-active-d,.kind-active-m{
        width: 70px;
        height:30px;
        font-size: 12px;
        display: flex;
        justify-content: center;
        align-items:center;
        border:1px solid rgb(235,235,237)
    }
    .kind-active,.kind-active-d,.kind-active-m{
        background-color:rgb(66,118,253);
        color: #fff;
    }
    .kind-d{
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
    }
    .kind-m{
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }
    .kind-active-d{
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
    }
    .kind-active-m{
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    .active{
        border-bottom: 2px solid rgb(60, 104, 235);
    }
}